﻿using System;
using System.IO;

namespace EmailSender
{
    public class MessageAttachment
    {
        public MessageAttachment(string fileName)
        {
            if (fileName == null)
            {
                throw new ArgumentNullException("fileName");
            }
            var info = new FileInfo(fileName);
            if (!info.Exists)
            {
                throw new ArgumentException("The specified file does not exists", "fileName");
            }
            FileName = fileName;
        }


        public string FileName { get; set; }
    }
}